<template>
  <el-main class="user-userinfo">
<!--    <div class="row"><span @click="goInfo()">查看基本信息</span></div>-->
<!--    <div class="row"><el-button type="primary" size="mini" @click="goInfo()">返回查看</el-button></div>-->
    <el-form>
      <div class="row">
        <el-form-item class="col-sm-6" label="姓名">
          <el-input v-model="adminInfo.adminName"></el-input>
        </el-form-item>
        <el-form-item class="col-sm-6" label="手机号">
          <el-input v-model="adminInfo.adminPhone"></el-input>
        </el-form-item>
      </div>
      <div class="row">
        <el-form-item  class="col-sm-6" label="所在科室">
          <el-input v-model="adminInfo.adminDepartment"></el-input>
        </el-form-item >
        <el-form-item  class="col-sm-6" label="毕业院校">
          <el-input v-model="adminInfo.adminGraduate"></el-input>
        </el-form-item >
      </div>
      <div class="row">
        <el-form-item  class="col-sm-6" label="籍贯">
          <el-input v-model="adminInfo.adminNative"></el-input>
        </el-form-item >
        <el-form-item  class="col-sm-6" label="联系地址">
          <el-input v-model="adminInfo.adminAddress"></el-input>
        </el-form-item >
      </div>
    </el-form>

    <div class="edit-button">
      <el-button type="primary" @click.stop="saveAdminInfo">保存</el-button>
      <el-button  @click.stop="cancelEdit">取消</el-button>
    </div>
  </el-main>
</template>


<script>
export default {
  name: "AdminChange",
  data(){
    return{
      adminInfo:{}
    }
  },
  computed:{
    avatar(){
      return this.userInfo.username
    },
  },
  methods:{
    cancelEdit(){
      this.$emit("status",'AdminInfo')
    },
    saveAdminInfo(){
      this.cancelEdit()
    }
  },
//  mounted() {
//   this.adminInfo = this.$store.getters.getAdminInfo
// }
}
</script>
